
<script setup lang="ts">

const emit = defineEmits<{
  (event: 'close'): void
}>()

</script>

<template>
  <view class="viewport">
    <text class="close icon-close" @tap="emit('close')"></text>
  <view class="title">服务说明</view>
  <view class="conent">
    <view class="item">
      <view class="dt">无忧退货</view>
      <view class="dd">
        自收到商品之日起30天内，可在线申请无忧退货服务（食品等特殊商品除外）
      </view>
    </view>
    <view class="item">
      <view class="dt">快速退款</view>
      <view class="dd">
        收到退货包裹并确认无误后，将在48小时内办理退款，
        退款将原路返回，不同银行处理时间不同，预计1-5个工作日到账
      </view>
    </view>
    <view class="item">
      <view class="dt">满88元免邮费</view>
      <view class="dd">
        单笔订单金额(不含运费)满88元可免邮费，不满88元， 单笔订单收取10元邮费
      </view>
    </view>
  </view>
  </view>


</template>

<style lang="scss">

  .viewport {
    padding: 0 30rpx;
  }

  .close {
    position: absolute;
    top: 20rpx;
    right: 20rpx;
  }

  .title {
    width: 100%;
    text-align: center;
    padding: 30rpx 0;
    border-bottom: 1rpx solid lightgray;
  }

  .item {
    margin: 30rpx 20rpx;
  }

  .dt {
    font-size: 30rpx;
    position: relative;
    &::before {
      content: '';
      width: 10rpx;
      height: 10rpx;
      border-radius: 50%;
      background-color: #eaeaea;
      position: absolute;
      top: 50%;
      left: -20rpx;
    }
  }

  .dd {
    font-size: 28rpx;
    color: darkgray;
    line-height: 1.5;
  }

</style>